import "@site/src/languages/highlight";

# Touch

**Description:**

&emsp;&emsp;Represents a touch input or mouse click event.

**Class Object:** [Touch Class](/docs/api/Class%20Object/Touch).

**Inherits from:** [Object](/docs/api/Class/Object).

## enabled

**Type:** Field.

**Description:**

&emsp;&emsp;Whether touch input is enabled or not.

**Signature:**
```tl
enabled: boolean
```

## first

**Type:** Readonly Field.

**Description:**

&emsp;&emsp;Whether this is the first touch event when multi-touches exist.

**Signature:**
```tl
const first: boolean
```

## id

**Type:** Readonly Field.

**Description:**

&emsp;&emsp;The unique identifier assigned to this touch event.

**Signature:**
```tl
const id: integer
```

## delta

**Type:** Readonly Field.

**Description:**

&emsp;&emsp;The amount and direction of movement since the last touch event.

**Signature:**
```tl
const delta: Vec2
```

## location

**Type:** Readonly Field.

**Description:**

&emsp;&emsp;The location of the touch event in the node's local coordinate system.

**Signature:**
```tl
const location: Vec2
```

## worldLocation

**Type:** Readonly Field.

**Description:**

&emsp;&emsp;The location of the touch event in world coordinate system.

**Signature:**
```tl
const worldLocation: Vec2
```